package com.eshop.eshop2021_v1.mapper.before;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eshop.eshop2021_v1.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: 若若叶
 * @date: 2021/10/7 9:09 FileName: GoodsMapper Description:
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
  // 查找全部推荐商品
  List<Goods> selectAllRecommendGoods();
  // 查找全部最新商品
  List<Goods> selectAllNewGoods();
  // 根据id获取商品详情
  Goods findGoodByGoodId(Integer goodId);
}
